package junior.db.dao.base;

/**
 * @author wubo
 * @date 2024/8/9 17:29
 */
public class SubQueryFilter implements IFilterItem {
    private String filterField;
    private String operator;
    private SubQuery subQuery;
    
    public SubQueryFilter(String filterField, String operator, SubQuery subQuery) {
        this.filterField = filterField;
        this.operator = operator;
        this.subQuery = subQuery;
    }
    
    public String getFilterField() {
        return filterField;
    }
    
    public String getOperator() {
        return operator;
    }
    
    public SubQuery getSubQuery() {
        return subQuery;
    }
    
    @Override
    public boolean isNormal() {
        return false;
    }
    
    @Override
    public boolean isRequirePreJoinOpt() {
        return true;
    }
    
    @Override
    public boolean isRequirePostJoinOpt() {
        return true;
    }
}
